import request from "../utils/request";
/**
 * 获取消息
 * @param {*} params
 * @returns
 */
export function apiGetMessage(params) {
  return request({
    method: "get",
    url: "/getMessage.php",
    params,
  });
}
/**
 * 添加请求
 * @param {*} data
 * @returns
 */
export function apiAddMessage(data) {
  return request({
    url: "/addMessage.php",
    method: "post",
    data,
  });
}
/**
 * 删除信息
 * @param {*} data
 * @returns
 */
export function apiDelMessage(data) {
  return request({
    url: "/delMessage.php",
    method: "post",
    data,
  });
}
